package com.chnagli06.method_more;

public class args {
    public static void main(String[] args) {
        args a = new args();
        a.method(1,2,3,4);
    }
    public void method (int ... nums ){
//        System.out.println(nums);
        for (int i = 0; i < nums.length; i++) {
            System.out.println(nums[i]);
        }
    }
}
